Conversation
includes/widgets/table.php
Outdated
| */ | ||
| public function get_title() { | ||
| return esc_html__( 'testOne', 'elementor' ); | ||
| return esc_html__( 'table', 'elementor' ); |
There was a problem hiding this comment.
I think we always use capital letters here:
return esc_html__( 'Table', 'elementor' );
includes/widgets/table.php
Outdated
| */ | ||
| public function get_keywords() { | ||
| return [ 'testOne', 'title', 'text' ]; | ||
| return [ 'table', 'title', 'text' ]; |
There was a problem hiding this comment.
I removed the 'title' and the 'text'
includes/widgets/table.php
Outdated
| 'image_alt' => esc_attr__( 'Upgrade', 'elementor' ), | ||
| 'description' => esc_html__( 'Create captivating testOnes that rotate with the Animated Headline Widget.', 'elementor' ), | ||
| 'upgrade_url' => esc_url( 'https://go.elementor.com/go-pro-testOne-widget/' ), | ||
| 'description' => esc_html__( 'Create captivating tables that rotate with the Animated Headline Widget.', 'elementor' ), |
There was a problem hiding this comment.
'description' => esc_html__( 'Create captivating tables.', 'elementor' ),
package.json
Outdated
| "eslint-plugin-react": "^7.33.2", | ||
| "eslint-webpack-plugin": "^4.0.1", | ||
| "grunt": "^1.5.3", | ||
| "grunt": "^1.6.1", |
There was a problem hiding this comment.
Please revert to the orginal value. We can't update packages on the whole repository.
package-lock.json
Outdated
| "eslint-plugin-react": "^7.33.2", | ||
| "eslint-webpack-plugin": "^4.0.1", | ||
| "grunt": "^1.5.3", | ||
| "grunt": "^1.6.1", |
There was a problem hiding this comment.
Revert changes. We can't make updates here.
package.json
Outdated
| "eslint-plugin-react": "^7.33.2", | ||
| "eslint-webpack-plugin": "^4.0.1", | ||
| "grunt": "^1.5.3", | ||
| "grunt": "^1.6.1", |
There was a problem hiding this comment.
Revert changes. We can't make updates here.
includes/widgets/table.php
Outdated
|
|
||
| <# if ( settings.list.length ) { #> | ||
| <tbody> | ||
| <tr> |
includes/widgets/table.php
Outdated
| <# if ( settings.list.length ) { #> | ||
| <tbody> | ||
| <tr> | ||
| <# _.each( settings.list, function( item ) { #> |
There was a problem hiding this comment.
| <# _.each( settings.list, function( item ) { #> | |
| <# _.each( settings.list, function( item ) { #> | |
| <tr> |
includes/widgets/table.php
Outdated
| <tr> | ||
| <# _.each( settings.list, function( item ) { #> | ||
| <td class="elementor-repeater-item-{{ item._id }}">{{{item.list_title}}}</td> | ||
| <# }); #> |
includes/widgets/table.php
Outdated
| <# _.each( settings.list, function( item ) { #> | ||
| <td class="elementor-repeater-item-{{ item._id }}">{{{item.list_title}}}</td> | ||
| <# }); #> | ||
| </tr> |
There was a problem hiding this comment.
| </tr> | |
| </tr> | |
| <# }); #> |
includes/widgets/table.php
Outdated
| $this->add_control( | ||
| 'rows', | ||
| [ | ||
| 'label' => esc_html__( "Rows' contents", 'elementor' ), |
There was a problem hiding this comment.
| 'label' => esc_html__( "Rows' contents", 'elementor' ), | |
| 'label' => esc_html__( 'Content rows', 'elementor' ), |
includes/widgets/table.php
Outdated
| 'rows', | ||
| [ | ||
| 'label' => esc_html__( "Rows' contents", 'elementor' ), | ||
| 'show_label' => esc_html__( true, 'elementor' ), |
There was a problem hiding this comment.
| 'show_label' => esc_html__( true, 'elementor' ), | |
| 'show_label' => true, |
includes/widgets/table.php
Outdated
| 'name' => 'column_content_one', | ||
| 'label' => esc_html__( 'Content column 1', 'elementor' ), | ||
| 'type' => \Elementor\Controls_Manager::TEXT, | ||
| 'default' => esc_html__( 'Content column 1' , 'elementor' ), |
includes/widgets/table.php
Outdated
| if ( $settings['rows'] ) { | ||
| echo '<tbody>'; | ||
| $rows = $settings['rows']; | ||
| for ($i=0; $i < count($rows) - 1; $i++) { |
There was a problem hiding this comment.
I think the rows minus 1 is causing a problem.
Elementor used always spaces in between, check the other files in the repository.
| for ($i=0; $i < count($rows) - 1; $i++) { | |
| for ( $i=0; $i < count( $rows ); $i++ ) { |
There was a problem hiding this comment.
yes I should have put <= like in the JS side
includes/widgets/table.php
Outdated
| <# if ( settings.rows.length ) { #> | ||
| <tbody> | ||
| <# let rows = settings.rows #> | ||
| <# for(let i = 0; i <= rows.length - 1; i++){ #> |
There was a problem hiding this comment.
| <# for(let i = 0; i <= rows.length - 1; i++){ #> | |
| <# for( let i = 0; i <= rows.length - 1; i++ ){ #> |
includes/widgets/table.php
Outdated
| <# let rows = settings.rows #> | ||
| <# for(let i = 0; i <= rows.length - 1; i++){ #> | ||
| <tr> | ||
| <td class="elementor-repeater-item-{{ rows[i]._id }}">{{{rows[i].column_content_one}}}</td> |
There was a problem hiding this comment.
| <td class="elementor-repeater-item-{{ rows[i]._id }}">{{{rows[i].column_content_one}}}</td> | |
| <td class="elementor-repeater-item-{{ rows[i]._id }}">{{{ rows[i].column_content_one }}}</td> |
includes/widgets/table.php
Outdated
| * | ||
| * @return array Widget promotion data. | ||
| */ | ||
| protected function get_upsale_data() { |
| } | ||
| }, | ||
| "node_modules/caniuse-lite": { | ||
| "version": "1.0.30001532", |
| $this->add_control( | ||
| 'table_head_color', | ||
| [ | ||
| 'label' => esc_html__( 'Table head Color', 'elementor' ), |
There was a problem hiding this comment.
Use labels from Trello.
Using the correct lowercase vs uppercase is important. You can't mix it randomly.
PR Checklist
PR Type
What kind of change does this PR introduce?
Summary
This PR can be summarized in the following changelog entry:
Description
An explanation of what is done in this PR
Test instructions
This PR can be tested by following these steps:
Quality assurance
Fixes #